package com.suneee.channel.dao.impl;

import java.util.List;

import org.springframework.stereotype.Repository;

import com.suneee.channel.dao.ChannelDao;
import com.suneee.channel.entity.Channel;
import com.suneee.orm.GenericDao;

@Repository("channelDao")
public class ChannelDaoImpl extends GenericDao<Channel, String>implements ChannelDao {

	@Override
	public List<Channel> listChannel() {
		return this.executeQuery("select * from t_channel where channel_code != ? ", "vw");
	}

	@Override
	public Channel getChannelByChannelCode(String channelCode) {
		return this.select(channelCode);
	}
}